import { Icon } from 'vant'
import 'vant/lib/index.css'
import components from './components-mobile'

// 安装组件
function installComponents(app) {
  for (const key of Object.keys(components)) {
    app.component(key, components[key])
  }
}

export default {
  install(app) {
    app.use(Icon)
    installComponents(app)
  },
}
